package com.example.cloud;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * 分布式配置中心Server
 *
 * @author tongyufu
 */
@EnableConfigServer
@EnableDiscoveryClient
@SpringBootApplication
public class ConfigServerCloudApplication {

    /**
     * 分布式配置中心Server
     *
     * @param args 启动参数
     */
    public static void main(String[] args) {
        new SpringApplicationBuilder(ConfigServerCloudApplication.class).web(WebApplicationType.SERVLET).run(args);
    }

}
